package com.ruoyi.mine.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductionInfoUpdateDTO {

    public interface Update {
    }

    @NotNull(groups = {Update.class},  message = "矿山生产数据文件不能为空")
    private Integer produceId;

    private String mineId;

    private String layerName;

    private String produceType;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate produceTime;

    private String fileType;

    private Integer epsgCode;

}
